package com.rongshu.sendmessage.util;

import android.app.Activity;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.lzy.imagepicker.loader.ImageLoader;

/**
 * 照片选择器中的 图片加载器
 */
public class PhotoImageLoader implements ImageLoader {

    @Override
    public void displayImage(Activity activity, String path, ImageView imageView, int width, int height) {

        //com.nostra13.universalimageloader.core.ImageLoader.getInstance().displayImage("file://"+path, imageView);
        Glide.with(activity).load(path).into(imageView);
    }
    @Override
    public void displayImagePreview(Activity activity, String path, ImageView imageView, int width, int height) {
        //com.nostra13.universalimageloader.core.ImageLoader.getInstance().displayImage("file://"+path, imageView);
        Glide.with(activity).load(path).into(imageView);
    }

    @Override
    public void clearMemoryCache() {

    }
}